<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<c:import url="/head.jsp"></c:import>
<script type="text/javascript">
function delOpt(id){

	if (confirm("确实要删除？")){
		location.href='<c:url value="/admin/destroyUnitCredit/"/>'+id;
	}
}
</script>
<body leftmargin="0" rightmargin="0" topmargin="0">

 <table align="center" class="tdata">
	<tbody>
		<tr>
			<td width="20%">项目编码</td>
			<td colspan="3" class="tinput">
				<input type="hidden" name="proCode" value="<c:out value='${proCode}'/>"> <c:out value='${proCode}' />
			</td>
		</tr>
		<tr>
			<td >项目名称</td>
			<td colspan="3" class="tinput"><c:out value='${proName}' /></td>
		</tr>
	</tbody>
</table>

<form method="get">
	<table border="0" align="center" class="tdata" width="100%">
		<tr>
			<td>从业单位名称：
				  <input name="keyWord" type="text" class="intxt" value="<c:out value='${keyWord}'/>" />
				  <input name="proCode" type="hidden" value="<c:out value='${proCode}'/>" />
			  	  <input type="submit" class="bnt60" value="搜 索"/>
		  	</td> 
		  	
			<td align="right">

			</td>
		</tr>
	</table>
</form>

<table class="tdata">
	<tr class="tr01">
    <td align="center" width="8%">序号</td>
	  <td align="center" width="30%">单位名称</td>
	  <td align="center" width="25%">信用信息发布管理部门</td>
	  <td align="center" width="15%">企业信用等级</td>
	  <td align="center" width="15%">发布日期</td>
	  <td align="center" width="10%">操作</td>
  </tr>
   <tbody>
		<c:forEach items="${companyBaseInfos}" var="companyBaseInfo" varStatus="status">
		<tr>
			<td align="center">${status.index+1}&nbsp;</td>
			<td><c:out value="${companyBaseInfo.companyName}" />&nbsp;</td>
			<td><c:out value="${companyBaseInfo.comPublishDepart}"/>&nbsp;</td>
			<td><c:out value="${companyBaseInfo.companyLevel}" />&nbsp;</td>
			<td align="center"><c:out
				value="${companyBaseInfo.comPublishDate}" />&nbsp;</td>
			<td align="center">
				<a href="<c:url value="/admin/editCompanyShow/?proCode=${proCode}&comId=${companyBaseInfo.comID}&show=1"/>">修改</a><br/>
				<a href="#" onClick="delOpt('${companyBaseInfo.comID}')">删除</a><br/>
				<a href="<c:url value="/admin/editCompanyShow/?proCode=${proCode}&comId=${companyBaseInfo.comID}&show=0"/>">查看</a>
			</td>
		</tr>
	</c:forEach>
	</tbody>
</table>
</body>
</html>